//
//  UIStandardSelectView.h
//  vhStressTest1
//
//  Created by jia yu on 2021/8/31.
//


/*
 
 UIStandardSelectView *v = [[UIStandardSelectView alloc] init];
 v.fromView = self.view;
 v.fromViewRect = CGRectMake(100.f, 100.f, 30.f, 30.f);
 v.availableItems = @[@"abc",@"deef",@"ccc"];
 v.selectedItem = @"ccc";
 [self presentViewController:v animated:YES completion:nil];

 
 */

#import <UIKit/UIKit.h>
#import "NSItemObject.h"

typedef void (^UIStandardSelectView_Handler) (NSItemObject * _Nonnull selectedItem);

NS_ASSUME_NONNULL_BEGIN
@interface UIStandardSelectViewController : UITableViewController
@property (nonatomic) UIStandardSelectView_Handler handler;
@property (nonatomic) UIView *fromView;
@property (nonatomic) CGRect fromViewRect;
@property (nonatomic) NSArray <NSItemObject *>*availableItems;
@property (nonatomic) NSString * _Nullable selectedString;
@property (nonatomic) NSInteger maxWidth;
@property (nonatomic) NSInteger maxHeight;
@property (nonatomic) UIFont *itemFont;

-(id)initWithScale:(float)scale;
@end
NS_ASSUME_NONNULL_END
